package com.diver.flinkdemo.entity.xxt;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 2018/07/30
 * Created by Wen Jun.
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "user_student_card对象", description = "微信-学生证关系表")
@TableName("user_student_card")
public class UserStudentCard implements java.io.Serializable {

    // 序列化版本
    private static final long serialVersionUID = -7845525000172446720L;

    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;

    // 用户id
    @ApiModelProperty(value = "用户id")
    private String userId;

    // 学生id
    @ApiModelProperty(value = "学生id")
    private String studentCardId;

    // 是否已经提示过用户     null为没有提示  1为提示过了
    @ApiModelProperty(value = "null：没有提示  1：已提示")
    private Integer isTip;

    // 是否最近一次绑定0:否，1:是
    @ApiModelProperty(value = "最近一次绑定 0:否 1:是")
    private int isLastUse;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
